<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<html>
    <head>
        <title>Welkom op het Enqu&ecirc;te Systeem</title>
    </head>
    <body>
        <jsp:include page="include/header.jsp"/>
        <h1>Enqu&ecirc;te Systeem</h1>
        <c:if test="${isingelogd == true}">
            <form action="checkenquete" method="POST">
                <input type="hidden" value="${sessionScope.userId}" name="id">
                <input type="submit" value="Selecteer Enquetes" >
            </form>
        </c:if>
        <table border="1">
            <tr>
                <th>enqu&ecirc;tes</th>
                <th>Aantal compleet ingevulde Enquetes</th>
            </tr>
            <c:forEach items="${result}" var="row" >
                <tr>
                    <td>${row['titel']}</td>
                    <td>${row['voltooid']}</td>
                    <c:if test="${isingelogd == true}">
                    </c:if>
                </tr>
            </c:forEach>
        </table>
    </body>
</html>